


call compile format ["Objective= obj_%1",ObjectiveNumber];
publicVariable "Objective";

ServerInitEnds=true;
publicVariable "ServerInitEnds";

sleep 20;

_angle = 360.0/8.0;
if(!isDebug)then{
	for "_i" from 0 to 8 do{
		_grp=createGroup civilian;
		_xObj=getPos Objective select 0;
		_yObj=getPos Objective select 1;
		
		_xR=(cos (_qangle*_i)*10.0)+_xObj;
		_yR=(sin (_angle*_i)*10.0)+_yObj;
		
		"RU_Policeman" createUnit [ [_xR,_yR],_grp];
		sleep 2;
		_policeman= leader _grp;
		
		_policeman setDir (_angle*_i)+90.0;
		
		_policeman addMagazine "8Rnd_9x18_Makarov";
		_policeman addMagazine "8Rnd_9x18_Makarov";
		_policeman addWeapon "Makarov";
		sleep 0.2;
		_policeman selectWeapon "Makarov";
		_policeman addEventHandler ["killed", {_this execVM "ServerCivilKilled.sqf";}];
	};
};

waitUntil{ !(alive Objective) };

"Human obj destructed" call debug; ;
HumanObjectiveCompleted=true;
publicVariable "HumanObjectiveCompleted";

